def generate_in_clause(numbers):
    # 将数字列表转换为字符串列表，并用单引号包裹
    quoted_numbers = [f"'{str(num)}'" for num in numbers]
    # 用逗号连接所有字符串
    comma_separated = ", ".join(quoted_numbers)
    # 生成最终的IN子句
    in_clause = f"in({comma_separated})"
    return in_clause

# 示例数字列表
numbers = [
1947689286316851200,
1947703748079910912,
1947715311125921792,
1947716958677893120,
1947758502009110528,
1947786786327494656,
1947800219672379392,
1947808451262414848,
1947815996844670976,
1947823316043563008,
1947824381296115712,
1947829471037882368,
1947832813319356416,
1947834658452406272,
1947842899219578880,
1947854573771161600,
1947854471157514240,
1947856239987785728,
1947857396369981440,
1947884400460955648,
1947884939932336128,
1947885934833827840,
1947887542678323200,
1947889460582547456,
1947889260514246656,
1947884700076867584,
1947904050259296256,
1947899687809843200,
1947901061360517120,
1947914878412914688,
1947918869028929536,
1947918799919382528,
1947920175860809728,
1947916681309323264,
1947930065685708800,
1947934594435121152,
1947931152308240384,
1947947018785652736,
1947947616734019584,
1947960225839448064,
1947963091056590848,
1947963543861067776,
1947964486669303808,
1947974993950277632,
1947975685322571776,
1947978634375462912,
1947978333878747136,
1947977871691612160,
1947978450425872384,
1947990897970905088,
1947992560655925248,
1948006040586944512,
1948006039941021696,
1948005869736165376,
1948007016484044800,
1948006677328429056,
1948007838970281984,
1948006657007026176,
1948020452039327744,
1948020544653754368,
1948022043102412800,
1948022147284729856,
1948023535263809536,
1948023331865231360,
1948025209189564416,
1948042496382599168
]

# 生成IN子句
in_clause = generate_in_clause(numbers)
print(in_clause)